package com.kevin.utility.entity;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class LiveAuthenticator extends Authenticator {
    private String username; 
    
    private String password; 

    public LiveAuthenticator(String username, String password) { 
        super(); 
        this.username = username; 
        this.password = password; 
    } 

    @Override 
    protected PasswordAuthentication getPasswordAuthentication() { 
         
        return new PasswordAuthentication(username, password); 
    }
}
